login_url = "http://www.reddit.com/api/login";
inbox_url = "http://www.reddit.com/message/inbox/.json";
unread_msg_url = "http://www.reddit.com/message/unread.json";
posts_url = "http://www.reddit.com/.json";

function nullOrEmpty(param){
  return (param==null) || (param == "");
}

function getPassword(){
  return pokki.descramble(localStorage.getItem("password"));
}

function savePassword(password){
  localStorage.setItem("password",pokki.scramble(password));
}

function getCookie(){
  return pokki.descramble(localStorage.getItem("cookie"));
}

function saveCookie(cookie){
  localStorage.setItem("cookie",pokki.scramble(cookie));
}

function getModHash(){
  return pokki.descramble(localStorage.getItem("modhash"));
}

function saveModHash(modhash){
  localStorage.setItem("modhash",pokki.scramble(modhash));
}